package com.shoppingmall.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.shoppingmall.bean.UserLoginBean;
import com.shoppingmall.dao.LoginDao;
import com.shoppingmall.service.LoginService;

/**
 * 用户登陆业务逻辑实现类
 * @author LIU
 * @version 1.0 2017-11-8
 */
@Service
public class LoginServiceImpl implements LoginService {

	@Autowired
	LoginDao loginDao;
	
	
	/**
	 * 登陆查询
	 * @param userLogin
	 * @return boolean
	 */
	@Override
	public boolean getUserLoginCount(UserLoginBean userLogin) {
		// TODO Auto-generated method stub
		if(loginDao.getUserLoginCount(userLogin) > 0) {
			return true;
		}
		return false;
	}

}
